import os

from appium.webdriver.common.appiumby import AppiumBy

# 定位方式
command_map = {
    "ID": AppiumBy.ID,
    "XPATH": AppiumBy.XPATH,
    "CLASS_NAME": AppiumBy.CLASS_NAME,
    "NAME": AppiumBy.NAME,
    "ANDROID_UIAUTOMATOR": AppiumBy.ANDROID_UIAUTOMATOR,
    "TAG_NAME": AppiumBy.TAG_NAME,
    "LINK_TEXT": AppiumBy.LINK_TEXT,
    "CSS_SELECTOR": AppiumBy.CSS_SELECTOR,
    "PARTIAL_LINK_TEXT": AppiumBy.PARTIAL_LINK_TEXT
}

BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# current_path = os.getcwd()
print(BASE_PATH)

# Data数据文件路径
DATA_PATH = os.path.join(BASE_PATH, 'data')
print(DATA_PATH)


# 配置文件基础路径
CONF_PATH = os.path.join(BASE_PATH, 'config')
# 元素定位配置文件路径
LOCATOR_CONF_PATH = os.path.join(os.path.join(BASE_PATH, 'config'), 'locator')
# 配置文件基础路径
ENV_CONF_PATH = os.path.join(os.path.join(BASE_PATH, 'config'), 'env')



